﻿using AutoMapper;
using S.Produce.Api.Application.Commands.WearningCommands;
using S.Produce.Domains;

namespace S.Produce.Api.Extensions
{
    /// <summary>
    /// automapper帮助类
    /// </summary>
    public class WeaningProfile : Profile
    {
        /// <summary>
        /// 添加auto mapper
        /// </summary>
        public WeaningProfile()
        {
            //添加
            CreateMap<WeaningCreateCommand, Weanings>().ReverseMap();
            //修改
            CreateMap<WeaningUpdateCommand, Weanings>().ReverseMap();
        }
    }
}
